﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo08
{
    public enum cookType { 
        egg,
        noodle
    }
    class CookRobots :Robot
    {
        public cookType cook {
            get { return this.cook; }
            set { this.cook = value; }
        }

        public CookRobots(string name,RobotType type,cookType cook):base(name,type) {
            this.cook = cook;
        }

        public override void Working()
        {
            Console.WriteLine("机器名:{0},功能{1}", this.Name, this.cook);
        }
    }
}
